package org.jiangnantaste.provider;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DBHelper extends SQLiteOpenHelper{
    private static final String DATABASE_NAME = "jiangnan_taste";
    private static final int DATABASE_VERSION = 2;
    public static final String TABLES_TABLE_NAME = "tabletbl";
    public static final String TABLES_TABLE_NAME2 = "menutbl";
    
	public DBHelper(Context context) {
		super(context, DATABASE_NAME,null, DATABASE_VERSION);
	}

	public void onCreate(SQLiteDatabase db) {
       /* db.execSQL("CREATE TABLE " + TABLES_TABLE_NAME + " ("
                + Tables._ID + " INTEGER PRIMARY KEY,"
                + Tables.NUM + " TEXT,"
                + Tables.DESCRIPTION + " TEXT"
                + ");");
        */
        db.execSQL("CREATE TABLE ;");
	}

	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		//db.execSQL("DROP TABLE IF EXISTS TableTbl");
		db.execSQL("DROP TABLE IF EXISTS menutbl");
        onCreate(db);
	}

}
